import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 引入 echarts
import echarts from 'echarts'
// 引入 axios
import axios from 'axios'
// 引入全局css重置样式
import '@/assets/style/reset.css'

Vue.prototype.$axios = axios
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false;
Vue.use(ElementUI)

Vue.directive('title', {
  inserted: function (el, binding) {
    document.title = el.dataset.title
  }
})


new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
